import { Module } from '@nestjs/common';
import { CacheModule } from '@nestjs/cache-manager';
import { UserService } from './user.service';
import { UserController } from './user.controller';
import { ClientHomeSchema } from '../schema/ClientHome/home.schema';
import { UserSchema } from '../schema/User/user.schema';
import { MongooseModule } from '@nestjs/mongoose';
import { AuthModule } from 'src/auth/auth.module';
import { LogoSchema } from '../schema/ClientHome/home.schema';
@Module({
  imports: [
    MongooseModule.forFeature([
      { name: 'ClientHome', schema: ClientHomeSchema },
      { name: 'User', schema: UserSchema },
      { name: 'Logo', schema: LogoSchema },
    ]),
    CacheModule.register(),
    AuthModule,
  ],
  controllers: [UserController],
  providers: [UserService],
})
export class UserModule {}
